<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'top.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<link rel="stylesheet" type="text/css" href="images/main.css">

<script type="text/javascript" src="images/jquery.js"></script>
<script type="text/javascript">
$(function(){
	// 显示时间
	function currentTime() {
		var d = new Date(), str = '';
		str += d.getFullYear() + '年';
		str += d.getMonth() + 1 + '月';
		str += d.getDate() + '日 ';
		str += d.getHours() + ':';
		str += d.getMinutes() + ':';
		str += d.getSeconds() + ' ';
		str += '星期'+getWeek(d.getDay());
		return str;
	}
	function getWeek(day){
		switch(day){
		case 0 : return '日';
		case 1 : return '一';
		case 2 : return '二';
		case 3 : return '三';
		case 4 : return '四';
		case 5 : return '五';
		case 6 : return '六';
		}
	}
	
	setInterval(function() {
		$('#time').html(currentTime);
	}, 1000);
	
	});
	//导航点击效果
	var perNav="nav0";
	var navOnclick = function (id){
		if (perNav != ""){
			$("#"+perNav).attr("class","navbg");
		}
		if ($("#"+id).attr("class")=="navbg"){
			perNav = id;
			$("#"+id).attr("class","navbg_onclick");
		}
	};
</script>

</head>

<body>
<div style="height:112px;overflow:hidden">
	<div class="logo"></div>
	<div class="clearboth"></div>
	<div style="width:205px" class="floatleft">
		<div class="userinfo">
			欢迎您：<s:property value="#session.SESSION_MANAGER_LOGIN.manName"/><br /> [<s:property value="#session.SESSION_MANAGER_LOGIN.manType.manTypeName"/>,
<a href="changePwd?option=enter" target="mainFrame">修改密码</a>]
		</div>
	</div>
	<div class="nav">
		<ul>
		<li id="nav0" class="navbg_onclick"><a href="listMenu?nav=-1" target="leftFrame" onclick="navOnclick('nav0');">首&nbsp;&nbsp;&nbsp;&nbsp;页</a></li>
		<s:iterator value="#session.SESSION_NAVIGATION" var="each" status="st">
		<li id="nav<s:property value="#st.index + 1"/>" class="navbg"><a href="listMenu?authSort=<s:property value="#each.authSort"/>&nav=<s:property value="#each.navId"/>" target="leftFrame" onclick="navOnclick('nav<s:property value="#st.index + 1"/>');"><s:property value="#each.navName" /></a></li>
		</s:iterator>
		</ul>
		<div>
			<span>欢迎使用学欣图书资料管理系统！</span><span class="floatright">系统时间：<font id="time"></font></span>
		</div>
	</div>
	</div>
</body>
</html>
